/* eslint-disable @typescript-eslint/no-unused-vars */
import {
  createRouter,
  createWebHistory,
  type RouteRecordRaw,
  createWebHashHistory,
} from 'vue-router';
//day20241211
import StuDemo1 from '@/views/day20241211/StuDemo1.vue';
import StuDemo2 from '@/views/day20241211/StuDemo2.vue';
import StuDemo3 from '@/views/day20241211/StuDemo3.vue';
// 定义路由表
const routesday20241211: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo1',
    name: 'dayStuDemo1',
    component: () => import('@/views/day20241211/StuDemo1.vue'),
  },
  {
    path: '/StuDemo2',
    name: 'dayStuDemo2',
    component: () => import('@/views/day20241211/StuDemo2.vue'),
  },
  {
    path: '/StuDemo3',
    name: 'dayStuDemo3',
    component: () => import('@/views/day20241211/StuDemo3.vue'),
  },
];
//day20241212
import StuDemo4 from '@/views/day20241212/StuDemo4.vue';
import StuDemo5 from '@/views/day20241212/StuDemo5.jsx';
import StuDemo6 from '@/views/day20241212/StuDemo6.vue';
import StuDemo7 from '@/views/day20241212/StuDemo7.vue';
// 定义路由表
const routesday20241212: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo4',
    name: 'dayStuDemo4',
    component: () => import('@/views/day20241212/StuDemo4.vue'),
  },
  {
    path: '/StuDemo5',
    name: 'dayStuDemo5',
    component: () => import('@/views/day20241212/StuDemo5.jsx'),
  },
  {
    path: '/StuDemo6',
    name: 'dayStuDemo6',
    component: () => import('@/views/day20241212/StuDemo6.vue'),
  },
  {
    path: '/StuDemo7',
    name: 'dayStuDemo7',
    component: () => import('@/views/day20241212/StuDemo7.vue'),
  },
];
//day20241213
import StuDemo8 from '@/views/day20241213/StuDemo8.vue';
import StuDemo9 from '@/views/day20241213/StuDemo9.vue';
import StuDemo10 from '@/views/day20241213/StuDemo10.vue';
// 定义路由表
const routesday20241213: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo8',
    name: 'dayStuDemo8',
    component: () => import('@/views/day20241213/StuDemo8.vue'),
  },
  {
    path: '/StuDemo9',
    name: 'dayStuDemo9',
    component: () => import('@/views/day20241213/StuDemo9.vue'),
  },
  {
    path: '/StuDemo10',
    name: 'dayStuDemo10',
    component: () => import('@/views/day20241213/StuDemo10.vue'),
  },
];
//day20241214
import StuDemo11 from '@/views/day20241214/StuDemo11.vue';
import StuDemo12 from '@/views/day20241214/StuDemo12.vue';
// 定义路由表
const routesday20241214: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo11',
    name: 'dayStuDemo11',
    component: () => import('@/views/day20241214/StuDemo11.vue'),
  },
  {
    path: '/StuDemo12',
    name: 'dayStuDemo12',
    component: () => import('@/views/day20241214/StuDemo12.vue'),
  },
];
//day20241216
import StuDemo13 from '@/views/day20241216/StuDemo13.vue';
import StuDemo14 from '@/views/day20241216/StuDemo14.vue';
import StuDemo15 from '@/views/day20241216/StuDemo15.vue';
import StuDemo16 from '@/views/day20241216/StuDemo16.vue';
// 定义路由表
const routesday20241216: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo13',
    name: 'dayStuDemo13',
    component: () => import('@/views/day20241216/StuDemo13.vue'),
  },
  {
    path: '/StuDemo14',
    name: 'dayStuDemo14',
    component: () => import('@/views/day20241216/StuDemo14.vue'),
  },
  {
    path: '/StuDemo15',
    name: 'dayStuDemo15',
    component: () => import('@/views/day20241216/StuDemo15.vue'),
  },
  {
    path: '/StuDemo16',
    name: 'dayStuDemo16',
    component: () => import('@/views/day20241216/StuDemo16.vue'),
  },
];
//day20241217
import StuDemo17 from '@/views/day20241217/StuDemo17.vue';
import StuDemo18 from '@/views/day20241217/StuDemo18.vue';
import StuDemo19 from '@/views/day20241217/StuDemo19.vue';
import StuDemo20 from '@/views/day20241217/StuDemo20.vue';
// 定义路由表
const routesday20241217: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo17',
    name: 'dayStuDemo17',
    component: () => import('@/views/day20241217/StuDemo17.vue'),
  },
  {
    path: '/StuDemo18',
    name: 'dayStuDemo18',
    component: () => import('@/views/day20241217/StuDemo18.vue'),
  },
  {
    path: '/StuDemo19',
    name: 'dayStuDemo19',
    component: () => import('@/views/day20241217/StuDemo19.vue'),
  },
  {
    path: '/StuDemo20',
    name: 'dayStuDemo20',
    component: () => import('@/views/day20241217/StuDemo20.vue'),
  },
];
//day20241218
import StuDemo21 from '@/views/day20241218/StuDemo21.vue';
import StuDemo22 from '@/views/day20241218/StuDemo22.vue';
import StuDemo23 from '@/views/day20241218/StuDemo23.vue';
import StuDemo24 from '@/views/day20241218/StuDemo24.vue';
import StuDemo25 from '@/views/day20241218/StuDemo24.vue';
// 定义路由表
const routesday20241218: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo21',
    name: 'dayStuDemo21',
    component: () => import('@/views/day20241218/StuDemo21.vue'),
  },
  {
    path: '/StuDemo22',
    name: 'dayStuDemo22',
    component: () => import('@/views/day20241218/StuDemo22.vue'),
  },
  {
    path: '/StuDemo23',
    name: 'dayStuDemo23',
    component: () => import('@/views/day20241218/StuDemo23.vue'),
  },
  {
    path: '/StuDemo24',
    name: 'dayStuDemo24',
    component: () => import('@/views/day20241218/StuDemo24.vue'),
  },
  {
    path: '/StuDemo25',
    name: 'dayStuDemo25',
    component: () => import('@/views/day20241218/StuDemo25.vue'),
  },
];
//day20241219
import StuDemo26 from '@/views/day20241219/StuDemo26.vue';
import StuDemo27 from '@/views/day20241219/StuDemo27.vue';
import StuDemo28 from '@/views/day20241219/StuDemo28.vue';
import StuDemo29 from '@/views/day20241219/StuDemo29.vue';
import StuDemo30 from '@/views/day20241219/StuDemo30.vue';
// 定义路由表
const routesday20241219: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo26',
    name: 'dayStuDemo26',
    component: () => import('@/views/day20241219/StuDemo26.vue'),
  },
  {
    path: '/StuDemo27',
    name: 'dayStuDemo27',
    component: () => import('@/views/day20241219/StuDemo27.vue'),
  },
  {
    path: '/StuDemo28',
    name: 'dayStuDemo28',
    component: () => import('@/views/day20241219/StuDemo28.vue'),
  },
  {
    path: '/StuDemo29',
    name: 'dayStuDemo29',
    component: () => import('@/views/day20241219/StuDemo29.vue'),
  },
  {
    path: '/StuDemo30',
    name: 'dayStuDemo30',
    component: () => import('@/views/day20241219/StuDemo30.vue'),
  },
];
//day20241220
import StuDemo31 from '@/views/day20241220/StuDemo31.vue';
import StuDemo32 from '@/views/day20241220/StuDemo32.vue';
import StuDemo33 from '@/views/day20241220/StuDemo33.vue';
import StuDemo34 from '@/views/day20241220/StuDemo34.vue';
import StuDemo35 from '@/views/day20241220/StuDemo35.vue';
// 定义路由表
const routesday20241220: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo31',
    name: 'dayStuDemo31',
    component: () => import('@/views/day20241220/StuDemo31.vue'),
  },
  {
    path: '/StuDemo32',
    name: 'dayStuDemo32',
    component: () => import('@/views/day20241220/StuDemo32.vue'),
  },
  {
    path: '/StuDemo33',
    name: 'dayStuDemo33',
    component: () => import('@/views/day20241220/StuDemo33.vue'),
  },
  {
    path: '/StuDemo34',
    name: 'dayStuDemo34',
    component: () => import('@/views/day20241220/StuDemo34.vue'),
  },
  {
    path: '/StuDemo35',
    name: 'dayStuDemo35',
    component: () => import('@/views/day20241220/StuDemo35.vue'),
  },
];
//day20241223
import StuDemo36 from '@/views/day20241223/StuDemo36.vue';
// 定义路由表
const routesday20241223: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo36',
    name: 'dayStuDemo36',
    component: () => import('@/views/day20241223/StuDemo36.vue'),
  },
];
//day20241224
import StuDemo37 from '@/views/day20241224/StuDemo37.vue';
import StuDemo38 from '@/views/day20241224/StuDemo38.vue';
// 定义路由表
const routesday20241224: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo37', // 路由地址
    name: 'dayStuDemo37', // 路由名称
    component: () => import('@/views/day20241224/StuDemo37.vue'), // 路由组件
  },
  {
    path: '/StuDemo38',
    name: 'dayStuDemo38',
    component: () => import('@/views/day20241224/StuDemo38.vue'),
  },
];
//day20241225
import StuDemo39 from '@/views/day20241225/StuDemo39.vue';
import StuDemo40 from '@/views/day20241225/StuDemo40.vue';
import StuDemo41 from '@/views/day20241225/StuDemo41.vue';
import StuDemo42 from '@/views/day20241225/StuDemo42.vue';
import StuDemo43 from '@/views/day20241225/StuDemo43.vue';
// 定义路由表
const routesday20241225: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo39',
    name: 'dayStuDemo39',
    component: () => import('@/views/day20241225/StuDemo39.vue'),
  },
  {
    path: '/StuDemo40',
    name: 'dayStuDemo40',
    component: () => import('@/views/day20241225/StuDemo40.vue'),
  },
  {
    path: '/StuDemo41',
    name: 'dayStuDemo41',
    component: () => import('@/views/day20241225/StuDemo41.vue'),
  },
  {
    path: '/StuDemo42',
    name: 'dayStuDemo42',
    component: () => import('@/views/day20241225/StuDemo42.vue'),
  },
  {
    path: '/StuDemo43',
    name: 'dayStuDemo43',
    component: () => import('@/views/day20241225/StuDemo43.vue'),
  },
];
//day20241226
import StuDemo44 from '@/views/day20241226/StuDemo44.vue';
import StuDemo45 from '@/views/day20241226/StuDemo45.vue';
import StuDemo46 from '@/views/day20241226/StuDemo46.vue';
// 定义路由表
const routesday20241226: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo44',
    name: 'dayStuDemo44',
    component: () => import('@/views/day20241226/StuDemo44.vue'),
  },
  {
    path: '/StuDemo45',
    name: 'dayStuDemo45',
    component: () => import('@/views/day20241226/StuDemo45.vue'),
  },
  {
    path: '/StuDemo46',
    name: 'dayStuDemo46',
    component: () => import('@/views/day20241226/StuDemo46.vue'),
  },
];
//day20241227
import StuDemo47 from '@/views/day20241227/StuDemo47.vue';
import StuDemo48 from '@/views/day20241227/StuDemo48.vue';
// 定义路由表
const routesday20241227: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo47',
    name: 'dayStuDemo47',
    component: () => import('@/views/day20241227/StuDemo47.vue'),
  },
  {
    path: '/StuDemo48',
    name: 'dayStuDemo48',
    component: () => import('@/views/day20241227/StuDemo48.vue'),
  },
];
//day20241230
import StuDemo49 from '@/views/day20241230/StuDemo49.vue';
import StuDemo50 from '@/views/day20241230/StuDemo50.vue';
import StuDemo51 from '@/views/day20241230/StuDemo51.vue';
// 定义路由表
const routesday20241230: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo49',
    name: 'dayStuDemo49',
    component: () => import('@/views/day20241230/StuDemo49.vue'),
  },
  {
    path: '/StuDemo50',
    name: 'dayStuDemo50',
    component: () => import('@/views/day20241230/StuDemo50.vue'),
  },
  {
    path: '/StuDemo51',
    name: 'dayStuDemo51',
    component: () => import('@/views/day20241230/StuDemo51.vue'),
  },
];
//day20250102
import StuDemo52 from '@/views/day20250102/StuDemo52.vue';
import StuDemo54 from '@/views/day20250102/StuDemo54.vue';
import StuDemo55 from '@/views/day20250102/StuDemo55.vue';
// 定义路由表
const routesday20250102: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo52',
    name: 'dayStuDemo52',
    component: () => import('@/views/day20250102/StuDemo52.vue'),
  },
  {
    path: '/StuDemo54',
    name: 'dayStuDemo54',
    component: () => import('@/views/day20250102/StuDemo54.vue'),
    children: [
      {
        path: '/StuDemo54/',
        name: 'StuDemo54Son1',
        component: () => import('@/views/day20250102/components/StuDemo54Son1.vue'),
      },
      {
        path: '/StuDemo54/StuDemo54Son2',
        name: 'StuDemo54Son2',
        component: () => import('@/views/day20250102/components/StuDemo54Son2.vue'),
      },
    ],
  },
  {
    path: '/StuDemo55',
    name: 'dayStuDemo55',
    component: () => import('@/views/day20250102/StuDemo55.vue'),
    //子路由+动态路由
    children: [
      {
        path: '/StuDemo55/:id',
        name: 'StuDemo55Son1',
        component: () => import('@/views/day20250102/components/StuDemo55Son1.vue'),
      },
    ],
  },
];

//day20250103
import StuDemo56 from '@/views/day20250103/StuDemo56.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo57 from '@/views/day20250103/StuDemo57.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo58 from '@/views/day20250103/StuDemo58.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo59 from '@/views/day20250103/StuDemo59.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo60 from '@/views/day20250103/StuDemo60.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo61 from '@/views/day20250103/StuDemo61.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo57Son01 from '@/views/day20250103/components/StuDemo57Son01.vue';
import StuDemo57Son02 from '@/views/day20250103/components/StuDemo57Son02.vue';
import StuDemo57Son03 from '@/views/day20250103/components/StuDemo57Son03.vue';
import StuDemo61Son01 from '@/views/day20250103/components/StuDemo61Son01.vue';
// 定义路由表
const routesday20250103: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo56',
    name: 'dayStuDemo56',
    component: () => import('@/views/day20250103/StuDemo56.vue'),
    children: [
      {
        path: '/StuDemo56/StuDemo56Son01',
        name: 'StuDemo56Son01',
        component: () => import('@/views/day20250103/components/StuDemo56Son01.vue'),
      },
      {
        path: '/StuDemo56/:id/:title/:content',
        name: 'StuDemo56Son02',
        component: () => import('@/views/day20250103/components/StuDemo56Son02.vue'),
      },
      {
        path: '/StuDemo56/StuDemo56Son03',
        name: 'StuDemo56Son03',
        component: () => import('@/views/day20250103/components/StuDemo56Son03.vue'),
      },
      {
        path: '/StuDemo56/:id/:title/:content',
        name: 'StuDemo56Son04',
        component: () => import('@/views/day20250103/components/StuDemo56Son04.vue'),
      },
    ],
  },
  {
    path: '/StuDemo57',
    name: 'dayStuDemo57',
    component: () => import('@/views/day20250103/StuDemo57.vue'),
    children: [
      {
        path: '/StuDemo57/',
        name: 'Sons',
        //default 显示默认视图  son命名视图显示 ps:切记一定要写components + s
        components: {
          header: StuDemo57Son01,
          default: StuDemo57Son02,
          footer: StuDemo57Son03,
        },
        props: { header: false, default: true, footer: false },
      },
    ],
  },
  {
    path: '/StuDemo58',
    name: 'dayStuDemo58',
    // component: StuDemo58,
    // redirect:'/StuDemo57',//ps;redirect 和 component 不应在同一个路由上同时使用。
    // redirect: {name:'dayStuDemo56'},
    // redirect: { path: '/StuDemo56', query: { id: 1, title: '新闻标题', content: '新闻内容' } },
    redirect: (to) => {
      // 方法接收目标路由作为参数
      // return 重定向的字符串路径/路径对象
      return { path: '/StuDemo56', query: { id: 1, title: '新闻标题', content: '新闻内容' } };
    },
  },
  {
    path: '/StuDemo59',
    name: 'dayStuDemo59',
    // alias:'/StuDemo59Rechristen',//单个别名
    alias: ['/StuDemo59Rechristen1', '/StuDemo59Rechristen2', '/StuDemo59Rechristen3'],
    component: () => import('@/views/day20250103/StuDemo59.vue'),
  },
  {
    path: '/StuDemo60',
    name: 'dayStuDemo60',
    component: () => import('@/views/day20250103/StuDemo60.vue'),
    children: [
      {
        path: '/StuDemo60/:id',
        name: 'StuDemo60Son01',
        component: () => import('@/views/day20250103/components/StuDemo60Son01.vue'),
        props: true,
      },
    ],
  },
  {
    path: '/StuDemo61',
    name: 'dayStuDemo61',
    component: () => import('@/views/day20250103/StuDemo61.vue'),
    children: [
      {
        path: '/StuDemo61/StuDemo61Son01',
        name: 'StuDemo61Son01',
        component: () => import('@/views/day20250103/components/StuDemo61Son01.vue'),
        props: true,
      },
    ],
  },
];
//day20250104
import StuDemo62 from '@/views/day20250104/StuDemo62.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
// 定义路由表
const routesday20250104: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo62',
    name: 'dayStuDemo62',
    component: () => import('@/views/day20250104/StuDemo62.vue'),
    meta: { title: '我是路由元信息的标题', Transition: 'bounce' },
    children: [
      {
        path: '/StuDemo62/:id/:title/:content',
        name: 'StuDemo62Son01',
        component: () => import('@/views/day20250104/components/StuDemo62Son01.vue'),
        props: true,
      },
    ],
  },
];
//day20250106
import StuDemo63 from '@/views/day20250106/StuDemo63.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo64 from '@/views/day20250106/StuDemo64.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
// 定义路由表
const routesday20250106: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo63',
    name: 'dayStuDemo63',
    component: () => import('@/views/day20250106/StuDemo63.vue'),
  },
  {
    path: '/StuDemo64',
    name: 'dayStuDemo64',
    component: () => import('@/views/day20250106/StuDemo64.vue'),
  },
];
//day20250107
import StuDemo65 from '@/views/day20250107/StuDemo65.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
// 定义路由表
const routesday20250107: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo65',
    name: 'dayStuDemo65',
    component: () => import('@/views/day20250107/StuDemo65.vue'),
  },
];
//day20250108
import StuDemo66 from '@/views/day20250108/StuDemo66.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
// 定义路由表
const routesday20250108: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo66',
    name: 'dayStuDemo66',
    component: () => import('@/views/day20250108/StuDemo66.vue'),
  },
];
//day20250109
import StuDemo67 from '@/views/day20250109/StuDemo67.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo68 from '@/views/day20250109/StuDemo68.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
// 定义路由表
const routesday20250109: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo67',
    name: 'dayStuDemo67',
    component: () => import('@/views/day20250109/StuDemo67.vue'),
  },
  {
    path: '/StuDemo68',
    name: 'dayStuDemo68',
    component: () => import('@/views/day20250109/StuDemo68.vue'),
  },
];
//day20250110
import StuDemo69 from '@/views/day20250110/StuDemo69.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
// 定义路由表
const routesday20250110: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo69',
    name: 'dayStuDemo69',
    component: () => import('@/views/day20250110/StuDemo69.vue'),
  }
];

// day20250116
import StuDemo70 from '@/views/day20250116/StuDemo70.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
import StuDemo71 from '@/views/day20250116/StuDemo71.vue'; //如果使用懒加载（异步加载）不需要在使用import导入
const routesday20250116: Array<RouteRecordRaw> = [
  {
    path: '/StuDemo70',
    name: 'dayStuDemo70',
    component: () => import('@/views/day20250116/StuDemo70.vue'), // 按需加载
  },
  {
    path: '/StuDemo71',
    name: 'dayStuDemo71',
    component: () => import('@/views/day20250116/StuDemo71.vue'), // 按需加载
  },
]
//配置主页
import HomeView from '@/views/HomeView.vue';
//配置404页面
import StuDemo53 from '@/views/day20250102/StuDemo53.vue';
//配置注册页
import RegisterView from '@/views/RegisterView.vue';
//配置登录页
import LoginView from '@/views/LoginView.vue';
//使用展开运算符管理路由表
export const routerList = [
  ...routesday20250110,
  //配置主页
  {
    path: '/',
    name: 'HomeView',
    component: HomeView,
    // meta:{title:'我是主页标题',requiresAuth:true}
  },
  //配置404页面
  {
    path: '/:pathMatch(.*)*', // 使用正则表达式捕获所有未匹配路径
    name: 'dayStuDemo53',
    component: StuDemo53,
  },
  //配置注册页
  {
    path: '/RegisterView',
    name: 'RegisterView',
    component: RegisterView,
  },
  //配置登录页
  {
    path: '/LoginView',
    name: 'LoginView',
    component: LoginView,
  },
  ...routesday20241211,
  ...routesday20241212,
  ...routesday20241213,
  ...routesday20241214,
  ...routesday20241216,
  ...routesday20241217,
  ...routesday20241218,
  ...routesday20241219,
  ...routesday20241220,
  ...routesday20241223,
  ...routesday20241224,
  ...routesday20241225,
  ...routesday20241226,
  ...routesday20241227,
  ...routesday20241230,
  ...routesday20250102,
  ...routesday20250103,
  ...routesday20250104,
  ...routesday20250106,
  ...routesday20250107,
  ...routesday20250108,
  ...routesday20250109,
  ...routesday20250110,
  ...routesday20250116,
];

//注册路由
const router = createRouter({
  // history:createWebHashHistory(), //hash模式
  history: createWebHistory(import.meta.env.BASE_URL), //history模式
  routes: routerList,
});

//配置全局守卫
// router.beforeEach((to, from, next) => {
//   const istrue = localStorage.getItem('token');

//   if (istrue) {
//     //已经登录
//     if (to.path === '/LoginView') {
//       next();
//     } else {
//       next();
//     }
//   } else {
//     //没有登录情况
//     if (to.path === '/LoginView' || to.path === '/RegisterView') {
//       next();
//     } else {
//       alert('未登录，请先登录账号');
//       next('/LoginView');
//     }
//   }
// });

//自动路由
// import { createRouter, createWebHistory } from 'vue-router'
// import { routes } from 'vue-router/auto-routes'
// const router = createRouter({
//   history: createWebHistory(),
//   routes: routes, //使用自动路由
// })
export default router;
